package com.xf.beans;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
	public static void main(String[] args) {
		ApplicationContext ct = new ClassPathXmlApplicationContext("applicationContext.xml");
		Car c = (Car) ct.getBean("car");
		Car c2 = (Car) ct.getBean("car2");
		System.out.println(c);
		System.out.println(c2);
		Person p=(Person) ct.getBean("person3");
		System.out.println(p);
		
	}
	
}
